<div class="topnav">
    <div class="container-fluid">
        <nav class="navbar navbar-light navbar-expand-lg topnav-menu">

            <div class="collapse navbar-collapse" id="topnav-menu-content">
                <ul class="navbar-nav">
                    <li class="nav-item">
                        <a class="nav-link" href="index.php">
                            <i class="ti-home mr-2"></i>首页
                        </a>
                    </li>

                    <?php if($userrow['uid']==1){ ?>
                    <li class="nav-item dropdown mega-dropdown">
                        <a class="nav-link dropdown-toggle arrow-none" href="#" id="topnav-uielement" role="button"
                            data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            <i class="ti-dashboard mr-2"></i>控制台
                        </a>

                        <div class="dropdown-menu mega-dropdown-menu px-2 dropdown-menu-left"
                            aria-labelledby="topnav-uielement">
                            <div class="row">
                                <div class="col-lg-4">
                                    <div>
                                        <a href="webset.php" class="dropdown-item">系统配置</a>
                                        <a href="charge.php" class="dropdown-item">我的上级</a>
                                        <a href="huoyuan.php" class="dropdown-item">接口配置</a>
                                        <a href="class.php" class="dropdown-item">网课设置</a>
                                        <a href="data.php" class="dropdown-item">数据统计</a>
                                        <a href="dengji.php" class="dropdown-item">等级设置</a>
                                        <a href="userlist.php" class="dropdown-item">代理管理</a>
                                        <a href="paylist.php" class="dropdown-item">支付列表</a>
                                        <a href="mijia.php" class="dropdown-item">密价设置</a>
                                        <a href="fenlei.php" class="dropdown-item">添加分类</a>
                                        <a href="/daxiong" class="dropdown-item">一键对接</a>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </li>
                    <?php } ?>

                    <?php if ($conf['flkg']=="1"&&$conf['fllx']=="0") {?>
                    <li class="nav-item dropdown mega-dropdown">
                        <a class="nav-link dropdown-toggle arrow-none" href="#" id="topnav-uielement" role="button"
                            data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            <i class="ti-shopping-cart mr-2"></i>下单
                        </a>

                        <div class="dropdown-menu mega-dropdown-menu px-2 dropdown-menu-left"
                            aria-labelledby="topnav-uielement">
                            <div class="row">
                                <div class="col-lg-4">
                                    <div>
                                        <?php
                                        $a=$DB->query("select * from qingka_wangke_fenlei where status=1 ");
                                        while($rs=$DB->fetch($a)){
                                        ?>
                                        <a href="addfl?id=<?=$rs['id']?>" class="dropdown-item">
                                            <?=$rs['name']?>
                                        </a>
                                        <?php } ?>
                                        <a href="add2.php" class="dropdown-item">所有科目</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </li>
                    <?php } else {?>
                    <li class="nav-item">
                        <a href="add2.php" class="nav-link">
                            <i class="ti-shopping-cart mr-2"></i>下单
                        </a>
                    </li>
                    <!--<li class="nav-item">-->
                    <!--    <a href="add4.php" class="nav-link">-->
                    <!--        <i class="ti-shopping-cart mr-2"></i>轰炸下单-->
                    <!--    </a>-->
                    <!--</li>-->
                   
                    <?php }?>

                    <li class="nav-item">
                        <a href="list.php" class="nav-link">
                            <i class="ti-clipboard mr-2"></i> 学习列表
                        </a>
                    </li>

                    <?php if($userrow['uuid']==1){ ?>
                    <li class="nav-item">
                        <a href="pay.php" class="nav-link">
                            <i class="ti-credit-card mr-2"></i>充值
                        </a>
                    </li>
                    <!--<?php } ?>-->
                    <?php if($userrow['zcz']>300 ){?>
                    <li class="nav-item">
                        <a href="userlist.php" class="nav-link">
                            <i class="ti-user mr-2"></i>代理管理
                        </a>
                       
                    </li>
                     <?php } ?>
                      <?php if($userrow['zcz']>300 ){?>
                    <li class="nav-item">
                        <a href="charge.php" class="nav-link">
                            <i class="ti-user mr-2"></i>我的上级
                        </a>
                       
                    </li>
                     <?php } ?>
                    <li class="nav-item">
                        <a href="myprice.php" class="nav-link">
                            <i class="ti-gift mr-2"></i>学习价格
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="docking.php" class="nav-link">
                            <i class="ti-key mr-2"></i>平台对接
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="myworder.php" class="nav-link">
                            <i class="ti-user mr-2"></i>BUG反馈
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="log.php" class="nav-link">
                            <i class="ti-write mr-2"></i>日志
                        </a>
                    </li>
                    <li class="nav-item">
                        <a href="help.php" class="nav-link">
                            <i class="ti-book mr-2"></i>必看说明
                        </a>
                    </li>

                </ul>
            </div>
        </nav>
    </div>
</div>